.class public Lcom/instagram/android/support/camera/n;
.super Ljava/lang/Object;
.source "CropIntentBuilder.java"


# instance fields
.field private final a:Landroid/content/Intent;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/Class;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 59
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 60
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0, p1, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    .line 62
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "isCrop"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 65
    invoke-static {p1}, Lcom/instagram/k/a;->b(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    .line 66
    iget-object v1, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v2, "output"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 67
    return-void
.end method

.method public static a(Landroid/content/Context;Landroid/net/Uri;)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 34
    new-instance v0, Lcom/instagram/android/support/camera/n;

    const-class v1, Lcom/instagram/android/creation/activity/MediaCaptureActivity;

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/support/camera/n;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/support/camera/n;->a(Landroid/net/Uri;)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/android/support/camera/n;->a(Z)Lcom/instagram/android/support/camera/n;

    move-result-object v1

    invoke-static {}, Lcom/instagram/android/creation/c/a;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    const/16 v0, 0x400

    :goto_0
    invoke-virtual {v1, v0}, Lcom/instagram/android/support/camera/n;->c(I)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    const/16 v1, 0xc8

    invoke-virtual {v0, v1}, Lcom/instagram/android/support/camera/n;->a(I)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    return-object v0

    :cond_0
    const/16 v0, 0x800

    goto :goto_0
.end method

.method public static b(Landroid/content/Context;Landroid/net/Uri;)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 52
    new-instance v0, Lcom/instagram/android/support/camera/n;

    const-class v1, Lcom/instagram/android/support/camera/CropActivity;

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/support/camera/n;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/support/camera/n;->a(Landroid/net/Uri;)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/android/support/camera/n;->a(Z)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    const/16 v1, 0x96

    invoke-virtual {v0, v1}, Lcom/instagram/android/support/camera/n;->c(I)Lcom/instagram/android/support/camera/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/support/camera/n;->b()Lcom/instagram/android/support/camera/n;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a()Landroid/content/Intent;
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    return-object v0
.end method

.method public a(I)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 84
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "smallestDimension"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 85
    return-object p0
.end method

.method public a(Landroid/net/Uri;)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 74
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "EXTRA_IMAGE_URI"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 75
    return-object p0
.end method

.method public a(Ljava/lang/String;)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 104
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "pendingMediaKey"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 105
    return-object p0
.end method

.method public a(Z)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "EXTRA_REQUEST_CROP_RECT"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 80
    return-object p0
.end method

.method public b()Lcom/instagram/android/support/camera/n;
    .locals 3

    .prologue
    .line 94
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "EXTRA_SHOW_DONE_BUTTON"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 95
    return-object p0
.end method

.method public b(I)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 89
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "mediaSource"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 90
    return-object p0
.end method

.method public b(Z)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 109
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "directShare"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 110
    return-object p0
.end method

.method public c(I)Lcom/instagram/android/support/camera/n;
    .locals 2
    .parameter

    .prologue
    .line 99
    iget-object v0, p0, Lcom/instagram/android/support/camera/n;->a:Landroid/content/Intent;

    const-string v1, "largestDimension"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 100
    return-object p0
.end method
